@import "~common/css/_variables.scss";

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: 100%;
  height: 70px;
  z-index: 9;
  padding: 0 14px;
  box-shadow: 0 -3px 2px -2px $color8;


  .left {
    display: flex;
    align-items: center;
    width: 250px;
    height: 100%;

    img {
      width: 50px;
      height: 50px;
      border-radius: 4px;
      border: 1px solid #e5e6ea;
      background-color: #e5e6ea;
    }

    .music_info {
      display: flex;
      width: 200px;
      flex-direction: column;
      padding-left: 16px;

      div {
        display: flex;
        align-items: center;
        font-size: $fz14;
        line-height: 1.2;

        p {
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
          padding-right: 5px;
          line-height: 30px;


        }

        i {
          cursor: pointer;
          min-width: 30px !important;
          min-height: 30px !important;
          margin-left: 0 !important;

          &.unlike {
            background: url("~common/images/unlike.png") center center / auto 48px no-repeat;
          }

          &.like {
            min-width: 30px !important;
            min-height: 30px !important;
            margin-left: 0 !important;
            background: url("~common/images/like.png") center center / auto 48px no-repeat;
          }
        }

        &:last-child {
          font-size: $fz13;
          height: 14px;
          line-height: 14px;
        }
      }
    }
  }

  .control {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    height: 100%;

    .control_btn {
      display: flex;
      align-items: center;
      justify-content: center;

      li {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        font-size: 20px;

        span {
          svg {
            color: $color;
          }
        }

        &:not(:first-child) {
          margin-left: 20px;
        }

        &:nth-child(3) {
          width: 36px;
          height: 36px;
          font-size: 30px;
        }
      }
    }

    .progress {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      height: 10px;
      margin-top: 4px;

      span {
        padding: 0 10px;
        text-align: left;
        font-size: $fz12;

        &:last-child {
          text-align: right;
        }
      }

      .progress_box {
        display: flex;
        align-items: center;
        flex: 1;
      }



    }
  }

  .right {
    display: flex;
    justify-content: flex-end;
    width: 250px;

    .tool {
      display: flex;
      align-items: center;

      .volumeBox {
        margin-right: 4px;
        font-size: 24px;
      }

      .list {
        margin-left: 20px;
        font-size: 24px;
      }

      svg {
        color: $color;
      }
    }
  }

  input[type=range] {
    flex: 1;
    -webkit-appearance: none;
    height: 3px;
    outline: none;
    border-radius: 10px;
    cursor: pointer;
    -webkit-appearance: none;
    /*清除系统默认样式*/
    width: 100%;
    background: -webkit-linear-gradient($color, $color) no-repeat,
      rgba(0, 0, 0, 0.2);
    /*设置左边颜色为#61bd12，右边颜色为#ddd*/
    background-size: 0% 100%;
    /*设置左右宽度比例*/

    &::-webkit-slider-thumb {
      -webkit-appearance: none;
      height: 3px;
      width: 3px;
      margin-top: 0px;
      background-color: $color;
      border-radius: 50%;
      cursor: pointer;
      box-shadow: 0 0 5px 2px $color;
    }

    &:hover {
      &::-webkit-slider-thumb {
        height: 10px;
        width: 10px;
        visibility: visible;
        box-shadow: none;
      }
    }
  }
}